﻿@using System.Data
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{ 
    Model.cols = 8;
    Model.url = "ConstPassen";
}

<div id="EGV">
    <table class="table table-striped table-bordered table-hover">
        @if (Model.itemCount > 0)
        {
            <tr><th width="4%"></th><th width="6%">ID</th><th width="12%">时间</th><th>客户名</th><th width="14%">客户编号</th><th width="10%">客户组别</th><th width="10%">客户来源</th><th width="16%">操作</th></tr>
            foreach (DataRow dr in Model.dt.Rows)
            {
                <tr>
                    <td><input type="checkbox" name="idchk" value="@dr["Code"]" /></td>
                    <td>@dr["Flow"]</td>
                    <td>@DataConverter.CDate(dr["Add_Date"]).ToString("yyyy/MM/dd HH:mm:ss")</td>
                    <td><a href='ViewPassen?FieldName=Person_Add&id=@dr["Flow"]'>@dr["P_name"]</a></td>
                    <td>@dr["Code"]</td>
                    <td><a href="ConstPassen?group=@dr["Client_group"]%type=@dr["CLient_Type"]">@dr["Client_Group"]</a></td>
                    <td>@dr["Client_Source"]</td>
                    <td>
                        <a href='ViewPassen?FieldName=Person_Add&id=@dr["Flow"]' class="option_style"><i class="fa fa-eye"></i>预览</a>
                        <a href="AddConstPassen?FieldName=Person_Add&menu=edit&id=@dr["Flow"]" class="option_style"><i class="fa fa-edit"></i>修改</a>
                        <a href="?menu=delete&code=@dr["Code"]" onclick="return confirm('你确定要将所有选择删除吗？');" class="option_style"><i class="fa fa-trash-o"></i>删除</a>
                    </td>
                </tr>
            }
            @Html.Partial("_page",Model)
        }
        else
        {
            <tr><td colspan="8">当前没有信息!!</td></tr>
        }
    </table>
</div>